package com.example.administrator.xxnapp.bean;

import com.example.administrator.xxnapp.fragment.picture.IModelPictrue;
import com.example.administrator.xxnapp.http.HttpUrl;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.request.GetRequest;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/4/23.
 */

public class PictureBean implements IModelPictrue,Serializable{
    private int id;
    private String path;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public GetRequest<String> getPictures(int userId) {
        return OkGo.<String>get(HttpUrl.GET_PICTURE_URL+"/"+userId);
    }
}
